import request from "./request"
//展示所有店铺
export const getstore= () =>{
    return request({
      method: 'get',
      url: '/mall/store/list',
    })
  }
//查询某一店铺的所有商品
export const product = (storeId) =>{
    return request({
      method: 'get',
      url: 'mall/store/allProductByStore',
      params:{
        storeId
      },
    })
  }
//查询某一店铺的具体信息
export const storeinfo = (storeId) =>{
    return request({
      method: 'get',
      url: 'mall/store/storeInfo',
      params:{
        storeId
      },
    })
  }
//查询店铺所有分类
export const storeclassification = (storeId) =>{
    return request({
      method: 'get',
      url: 'mall/storeproductcategory/allCategoryByStore',
      params:{
        storeId
      },
    })
  }